sudo rm -rf /home/deck/.steam/steam/compatibilitytools.d/
mkdir /home/deck/.steam/steam/compatibilitytools.d/
cd /home/deck/Downloads/
wget https://vip.123pan.cn/1825477870/GE-Proton/GE9-22/GE-Proton9-22.tar.gz
tar -xzf /home/deck/Downloads/GE-Proton9-22.tar.gz
mv /home/deck/Downloads/GE-Proton9-22 /home/deck/.steam/steam/compatibilitytools.d
rm -rf /home/deck/Downloads/GE-Proton9-22/
rm -rf /home/deck/Downloads/GE-Proton9-22.tar.gz
sudo chmod -R 777 /home/deck/.steam/steam/compatibilitytools.d/
zenity --question --width=400 \
  --text="兼容层已更新！需要重启才能生效！, \
\n现在是否重启?"
if [ "$?" != 0 ]; then
  #NOTE: This code will never be reached due to "set -e", the system will already exit for us but just incase keep this
  echo "bye then! xxx"
  exit 0;
fi

reboot

echo "Done."
echo "Done."
